<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!-- 引入样式 -->
  <link rel="stylesheet" href="../../plugins/element-ui/index.css" />
  <link rel="stylesheet" href="../../styles/common.css" />
  <link rel="stylesheet" href="../../styles/page.css" />
  <style>
    *{

    }
    .el-divider{
      background-color:#e60012 !important;
      height: 2px;
      margin-top: 0;
    }
    .util_title{
      font-style: italic;
      font-size: 1.7rem;
      line-height: 3.4rem;
      color: white;
      background-color:#e60012;
      width: 9rem;
      height: 3.4rem;
      border-radius: 1rem 9rem 0 0;
      padding-left: 8px;
    }
  </style>
</head>
<body>
<div class="dashboard-container" id="order-app" v-loading="loading">
  <div class="container">
    <div class="util_title">系统优化</div>
    <el-divider></el-divider>
    <el-button style="background-image: url(../../images/icons/jiasu.jpg);width: 5rem;height: 5rem;background-size: cover;border-radius: 5px" @click="cleanImg()" class="appicon"></el-button>
    <br><span>&nbsp;清理垃圾</span>
    <div style="margin-top: 3rem" class="util_title">管理工具</div>
    <el-divider></el-divider>
  </div>

</div>
<!-- 开发环境版本，包含了有帮助的命令行警告 -->
<script src="../../plugins/vue/vue.js"></script>
<!-- 引入组件库 -->
<script src="../../plugins/element-ui/index.js"></script>
<!-- 引入axios -->
<script src="../../plugins/axios/axios.min.js"></script>
<script src="../../js/request.js"></script>
<script src="../../api/order.js"></script>
<script>
  new Vue({
    el: '#order-app',
    data() {
      return {

      }
    },


    created() {
    },

    methods: {
      cleanImg(){
        // console.log("正在执行")
        axios.request("/app/clean").then((res)=>{
          if (res.data.code===1){
            this.$message({
              message: '清理成功！',
              type: 'success',
            });
          }})}
    }
  })
</script>
</body>
</html>